e4f6b40b7460871ac1e408677361e6a29c94ee29,openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/SalFlowServiceImpl.java,SalFlowServiceImpl,addFlow,#AddFlowInput#,77

Before Change


        final FlowRegistryKey flowRegistryKey = FlowRegistryKeyFactory.create(deviceContext.getDeviceInfo().getVersion(), input);
        final ListenableFuture<RpcResult<AddFlowOutput>> future =
                flowAdd.processFlowModInputBuilders(flowAdd.toFlowModInputs(input));
        Futures.addCallback(future, new AddFlowCallback(input, flowRegistryKey));
        return future;
    }

After Change


        final ListenableFuture<RpcResult<AddFlowOutput>> future;

        if (flowAddMessage.isSupported()) {
            future = flowAddMessage.handleServiceCall(input);
            Futures.addCallback(future, new AddFlowCallback(input, flowRegistryKey));
        } else {
            future = flowAdd.processFlowModInputBuilders(flowAdd.toFlowModInputs(input));
            Futures.addCallback(future, new AddFlowCallback(input, flowRegistryKey));